]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: Remove unused UPGRADE_RESTART dialog data
authorMilan Crha <mcrha@redhat.com>
Tue, 13 Jan 2026 16:49:27 +0000 (17:49 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 27 Jan 2026 17:27:16 +0000 (17:27 +0000)
The gnome-software D-Bus OfflineUpdates API does not distinguish
between offline updates and offline upgrades, thus the UPGRADE_RESTART
dialog data are not used and can be dropped.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4034>

js/ui/endSessionDialog.js

index 92c1cc848fe1b386d3f2113e1aa0810d0a93f745..6178320d09389ae8cb85ac5a7495d0af9687c6b0 100644 (file)
@@ -123,31 +123,11 @@ const restartUpdateDialogContent = {
     showOtherSessions: true,
 };
 
-const restartUpgradeDialogContent = {
-
-    subject: C_('title', 'Restart & Install Upgrade'),
-    upgradeDescription(distroName, distroVersion) {
-        /* Translators: This is the text displayed for system upgrades in the
-           shut down dialog. First %s gets replaced with the distro name and
-           second %s with the distro version to upgrade to */
-        return _('%s %s will be installed after restart. Upgrade installation can take a long time: ensure that you have backed up and that the computer is plugged in.').format(distroName, distroVersion);
-    },
-    disableTimer: true,
-    showBatteryWarning: false,
-    confirmButtons: [{
-        signal: 'ConfirmedReboot',
-        label: C_('button', 'Restart & Install'),
-    }],
-    iconName: 'view-refresh-symbolic',
-    showOtherSessions: true,
-};
-
 const DialogType = {
     LOGOUT: 0 /* GSM_SHELL_END_SESSION_DIALOG_TYPE_LOGOUT */,
     SHUTDOWN: 1 /* GSM_SHELL_END_SESSION_DIALOG_TYPE_SHUTDOWN */,
     RESTART: 2 /* GSM_SHELL_END_SESSION_DIALOG_TYPE_RESTART */,
     UPDATE_RESTART: 3,
-    UPGRADE_RESTART: 4,
 };
 
 const DialogContent = {
@@ -155,7 +135,6 @@ const DialogContent = {
     1 /* DialogType.SHUTDOWN */: shutdownDialogContent,
     2 /* DialogType.RESTART */: restartDialogContent,
     3 /* DialogType.UPDATE_RESTART */: restartUpdateDialogContent,
-    4 /* DialogType.UPGRADE_RESTART */: restartUpgradeDialogContent,
 };
 
 const MAX_USERS_IN_SESSION_DIALOG = 5;